package com.hengshan.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * 用户登录对象
 */
@Data
@AllArgsConstructor
public class LoginBody {

    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    @Length(min = 0, max = 30, message = "账户长度必须在{min}到{max}个字符之间")
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "用户密码不能为空")
    @Length(min = 0, max = 30, message = "用户密码长度必须在{min}到{max}个字符之间")
    private String password;

    /**
     * 验证码
     */
    private String code;

    /**
     * 唯一标识
     */
    private String uuid;

}
